package online.longzipeng.householdbillssystem.business.vo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "用户修改对象",description = "请求参数类")
public class UserUpdateVO {

    @ApiModelProperty(value = "id",required = true)
    @Min(0)
    private Integer id;

    @ApiModelProperty(value = "用户名",example = "admin",required = false)
    private String userName;

    @ApiModelProperty(value = "密码",example = "admin123",required = false)
    private String password;

    @ApiModelProperty(value = "用户名称",example = "小丸子",required = false)
    private String nick;

    @ApiModelProperty(value = "年龄",example = "18",required = false)
    private Byte age;

    @ApiModelProperty(value = "头像",example = "http://xxx.jpg",required = false)
    private String avatar;

    /**
     * 加入的用户组的id
     */
    @ApiModelProperty(value = "用户组id",example = "1",required = false)
    private Integer groupId;

    /**
     * 权限列表json字符串
     */
    @ApiModelProperty(value = "权限列表",example = "{update,delete}",required = false)
    private String permissJson;

    /**
     * 家庭角色
     */
    @ApiModelProperty(value = "家庭角色",example = "爸爸",required = false)
    private String familyRole;

}